latestSwagger 2.0ShopBase Dev 1.02026-08-10153268547.4 KB

353ccde6240d

Customer Address

Create a new address for a customer

Creates a new address for a customer.

post/admin/customers/{customer_id:[0-9]+}/addresses.json

Request body

Example request

{
  "address": {
    "address1": "123 Fake Street",
    "city": "Fakecity",
    "country": "Vietnam",
    "country_code": "VN",
    "country_name": "Viet nam",
    "cpf_or_cnpj_number": "CPF: 231.234.234-23, CNPJ: 23.123.423/4234-24",
    "first_name": "John",
    "last_name": "Smith",
    "name": "example name",
    "province": "Ontario",
    "zip": "K2P 1L4"
  }
}

Response

OK

Example response

{
  "customer_address": {
    "address1": "123 Fake Street",
    "city": "Fakecity",
    "country": "Vietnam",
    "country_code": "VN",
    "country_name": "Viet nam",
    "cpf_or_cnpj_number": "CPF: 231.234.234-23, CNPJ: 23.123.423/4234-24",
    "first_name": "John",
    "last_name": "Smith",
    "name": "example name",
    "province": "Ontario",
    "zip": "K2P 1L4"
  }
}